package com.yonyou.iuap.shell.service.intf;

import java.io.File;
import java.io.InputStream;
import java.util.Map;

import com.yonyou.iuap.base.intf.IKmBaseService;
import com.yonyou.iuap.base.vo.FastDfsMsgVO;
import com.yonyou.iuap.shell.entity.exp.ShellFileUpPoJo;

public interface IKmFileManagerService extends IKmBaseService {
	/**
	 * 按照file上传文件
	 * @param file
	 * @param filePoJo
	 * @return
	 */
	public FastDfsMsgVO uploadFile(File file,ShellFileUpPoJo filePoJo);
	/**
	 * 按照byte上传文件
	 * @param bytes
	 * @param filePoJo
	 * @return
	 */
	public FastDfsMsgVO uploadFile(byte[] bytes,ShellFileUpPoJo filePoJo);
	/**
	 * 根据PK下载文件
	 * @param map
	 * @return
	 */
	public FastDfsMsgVO downFile(Map<String, String> map);
	/**
	 * 根据PK删除文件
	 * @param map
	 * @return
	 */
	public FastDfsMsgVO deleteFile(Map<String, String> map);
	/**
	 * ftp文件上传
	 * @param inStream
	 * @param filePoJo
	 * @return
	 */
	public FastDfsMsgVO uploadFileForFtp(ShellFileUpPoJo filePoJo);
	/**
	 * 根据PK删除Ftp文件
	 * @param map
	 * @return
	 */
	public FastDfsMsgVO deleteFileForFtp(Map<String, String> map);
	/**
	 * 根据PK下载Ftp文件
	 * @param map
	 * @return
	 */
	public FastDfsMsgVO downFileForFtp(Map<String, String> map);
	public FastDfsMsgVO deleteFileForTom(Map<String, String> map);
}
